import request from '@/utils/request'

// 查询客户预约信息列表
export function listCustomer_appointments(query) {
  return request({
    url: '/system/customer_appointments/list',
    method: 'get',
    params: query
  })
}

// 查询未取消的客户预约信息列表
export function getAppointmentsList() {
  return request({
    url: '/system/customer_appointments/no_cancel_list',
    method: 'get',
  })
}
// 查询客户预约信息详细
export function getCustomer_appointments(customerId) {
  return request({
    url: '/system/customer_appointments/' + customerId,
    method: 'get'
  })
}

// 新增客户预约信息
export function addCustomer_appointments(data) {
  return request({
    url: '/system/customer_appointments',
    method: 'post',
    data: data
  })
}

// 修改客户预约信息
export function updateCustomer_appointments(data) {
  return request({
    url: '/system/customer_appointments',
    method: 'put',
    data: data
  })
}

// 删除客户预约信息
export function delCustomer_appointments(customerId) {
  return request({
    url: '/system/customer_appointments/' + customerId,
    method: 'delete'
  })
}
